package com.yvdedu.hospital.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yvdedu.hospital.entity.Hospital;
import com.yvdedu.hospital.mapper.HospitalMapper;
import com.yvdedu.hospital.service.HospitalService;

@Service
public class HospitalSer implements HospitalService {

	@Resource
	private HospitalMapper hospitalMapper;

	@Override
	public List<Hospital> hospitalquery() {
		List<Hospital> list = hospitalMapper.hospitalquery();
		return list;
	}

	@Override
	public void hospitaladd(Hospital hospital) {
		hospitalMapper.hospitaladd(hospital);
	}

	@Override
	public void hospitaledit(Hospital hospital) {
		hospitalMapper.hospitaledit(hospital);
	}

	@Override
	public List<Hospital> hospitalNamequery(Hospital hospital) {
		List<Hospital> list = hospitalMapper.hospitalNamequery(hospital);
		return list;
	}

	@Override
	public void hospitaldelete(int id) {
		hospitalMapper.hospitaldelete(id);
	}

	@Override
	public List<Hospital> hospitalNamequeryl(Hospital hospital) {
		List<Hospital> list = hospitalMapper.hospitalNamequeryl(hospital);
		return list;
	}


}
